#include <stdio.h>

struct student
{
    int x;
    char c;
} a;
void f(struct student b);

/**
 * 结构体变量传递
*/
int main(int argc, char const *argv[])
{
    a.x=3;
    a.c='a';
    f(a);
    printf("%d,%c\n",a.x,a.c);

    return 0;
}

void f(struct student b)
{
    b.x=20;
    b.c='y';
    printf("%d,%c\n",b.x,b.c);
}